//show_ia.sqf
#include "ACV_constantes.h"
#ifdef __ACV_No_God_User
	if (true) exitWith {hint (Localize "STR_ACV_DISABLE");};
#endif
#include "ACV_ID_main_dlg.h"

private ["_display","_btn_show","_show"];
disableserialization;

_display = uiNamespace getVariable "R3F_ACV_MAIN_DLG";
_btn_show = _display displayCtrl ACV_DLG_ID_Main_CbShowIA;

ACV_ShowIA = !ACV_ShowIA;

_show = if !(ACV_ShowIA) then {false;} else {true;};
[_show] spawn R3F_FNCT_ShowIA;

if (ACV_ShowIA) then {
	_btn_show ctrlSetText "--";
	_btn_show ctrlSetTooltip localize "STR_TOOLTIP_HIDEIA";
} else {
	_btn_show ctrlSetText Localize "STR_ACV_BTN_LOOK_IA";
	_btn_show ctrlSetTooltip localize "STR_TOOLTIP_SHOWIA";
};
